package com.example.dmdomain.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Data
@Table(name = "electricity_price_keywords")
public class ElectricityPriceKeyword {
    @Id
    private String id;
    private String keyword;

    // 构造函数、getter 和 setter 方法
    public ElectricityPriceKeyword() {
    }

    public ElectricityPriceKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }
}
